
gl output_location 		"INSERT FILE PATH OF OUTPUT"
gl syntax_location 		"INSERT FILE PATH OF SYNTAX FILES"
gl saveddata 			"INSERT FILE PATH OF FIRM DATA"
gl logfile 				"INSERT FILE PATH OF LOGFILES"

gl firmdataname 		"INSERT NAME OF FIRM STATA FILE e.g. XXX.dta "
gl workerdataname 		"INSERT NAME OF FIRM STATA FILE e.g. YYY.dta "

di "************************************************************************************************************"
di "***************************************RECORD ACTIVITY IN LOG***********************************************"
di "************************************************************************************************************"

set matsize 10000
set more off
capture log close
local date: display %tcCCYYNNDD-HHMMSS clock(c(current_date)+ " " + c(current_time),"DMY hms")
log using "$logfile/RESTAT_REPLICATION_`date'.log", replace

di "************************************************************************************************************"
di "***************************************POINT TO REQUIRED PACKAGES********************************************"
di "************************************************************************************************************"

adopath ++ "R:/ADO_Files"

di "************************************************************************************************************"
di "***************************************FIRM-LEVEL ANALYSIS***********************************************"
di "************************************************************************************************************"

do "$syntax_location/RESTAT_replication_firmdata.do"
do "$syntax_location/RESTAT_replication_figures.do"
do "$syntax_location/RESTAT_replication_tables.do"


di "************************************************************************************************************"
di "***************************************WORKER-LEVEL ANALYSIS***********************************************"
di "************************************************************************************************************"

do "$syntax_location/RESTAT_replication_workerdata.do"
do "$syntax_location/RESTAT_replication_workertables.do"

